package com.zw.transition.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zw.transition.base.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import java.util.Date;

/**
 * @Description: 装配质检表
 *
 * @Author: wsg
 * @Date: 2021/04/22 15:49
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class AssemblyTransCheck extends BaseModel {

    private Integer id;

    /** 装配转序单表外键 */
    private Integer transId;

    /** 质检人编号 */
    private String checkCode;

    /** 质检人名称 */
    private String checkName;

    /** 质检时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date checkTime;

    /** 质检部门 */
    private String checkDept;

    /** 意见 */
    private String reason;

    /** 结果 */
    private String result;

    /** 备注 */
    private String comment;

    /** 状态 1=待质检 2=已质检 3=已接收 4=被驳回 5=作废 */
    @Column(nullable = false, columnDefinition = "tinyint")
    private Integer status = 1;

    /** 让步接收 0=非让步接收，1=让步接收 */
    @Column(nullable = false, columnDefinition = "tinyint")
    private Integer yield = 0;


}